<div class="row">
	<div class="twelve columns">
		<div class="box_c">
			<div class="box_c_heading cf">
				<div class="box_c_ico"><img src="img/ico/icSw2/16-List.png" alt="" /></div>
				<p>{{Envoyer une newsletter}}</p>
			</div>
			<div class="box_c_content form_a">
				<?php if(!empty($newsletters)){ ?>
				<form action="" method="post" class="nice">
					<div class="formRow">
						<div class="row">
							<div class="ten columns">
								<label >{{Newsletters}}</label>
								<input type="hidden" name="parentsList" id="parentsList" value="" />
								<select name="nid" class="chzn-select" tabindex="6" style="width:300px" id="nid">
									<?php foreach($newsletters as $key => $value){ ?>
										<option <?php if(!empty($_GET['id']) and $_GET['id'] == $key){ echo 'selected'; } ?> value="<?php echo $key; ?>"><?php echo $value['subject']; ?></option>
									<?php } ?>
								</select>
							</div>
						</div>
					</div>
					<div class="formRow">
						<div class="process"></div>
						<div class="summary" style="margin-bottom: 5px"></div>
						<div id="sendingProgress" class="sepH_b">
							<div class="percent"></div>
							<div class="pbar"></div>
							<div class="elapsed"></div>
						</div>
						<button <?php echo (file_get_contents(__NCONTROL__) == 1 ? 'disabled' : ''); ?> id="sendit" type="button" class="" style="padding:15px; margin-right: 10px; cursor:pointer">{{Envoyer cette newsletter}}</button>
						<button style="visibility:hidden" id="cancel" type="button" class="gh_button small danger t_failure">{{PAUSE}}</button>
						<button style="visibility:<?php echo (file_get_contents(__NCONTROL__) == 1 ? 'visible' : 'hidden'); ?>" id="init" type="button" class="gh_button small danger t_failure">REINITIALISATION</button>
					</div>
				</form>
				<?php }else{ ?>
				<div class="formRow">	
					<p>{{Vous n'avez créé aucune newsletter, veuillez créer une newsletter pour pouvoir utiliser cette fonction}}.</p>
				</div>
				<?php } ?>
			</div>
		</div>
	</div>
</div>
